<!DOCTYPE html>
<html>

<head>
  <title>
    <%= title %>
  </title>
  <link rel='stylesheet' href='/stylesheets/style.css' />
</head>

<body>
  <h1>
    <%= title %>
  </h1>
  <p>Welcome to <%= title %>
  </p>
  <table border="1">
    <tr>
      <td class="name title1">地址</td>
      <td class="name title2">类型</td>
      <td class="name title3">说明</td>
    </tr>
    <!-- 4.遍历这个arr数组--js写法 -->
    <% for( var i=0; i<router.length; i++){ %>
      <tr>
        <td class="name"><a href="<%= router[i].url %>" target=“_blank”>
            <%= router[i].url %>
          </a></td>
        <td class="name">
          <%= router[i].type %>
        </td>
        <td class="name">
          <%= router[i].name %>
        </td>
      </tr>
      <% } %>
  </table>

</body>

</html>